/* 项目验收表接口 -hlu */
import {
  request
} from "@/utils/request";
export function checkKnotItemActionsPermission(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/checkKnotItemActionsPermission`,
    method: 'post',
    data: parameter
  })
}
// 列表
export function getCheckList(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/getKnotItemBooks`,
    method: 'post',
    data: parameter
  })
}
// 创建验收表-获取基本信息属性值
export function getKnotItemBookAttrs(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/getKnotItemBookAttrs`,
    method: 'post',
    data: parameter
  })
}
// 创建验收表-获取基本信息属性值
export function getAcceptancePhase(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/getAcceptancePhase`,
    method: 'post',
    data: parameter
  })
}
//创建验收表-结项验收表表格
export function getInitIndexTree(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/getInitIndexTree`,
    method: 'post',
    data: parameter
  })
}
//编辑验收表-结项验收表表格
export function getProjectIndexTree(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/getProjectIndexTree`,
    method: 'post',
    data: parameter
  })
}
//创建验收表-保存
export function saveKnotItemBook(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/saveKnotItemBook`,
    method: 'post',
    data: parameter,
  })
}
/**删除数据 */
export function deleteKnotItemBooks(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/deleteKnotItemBooks`,
    method: 'post',
    data: parameter,
  })
}
/**创建任务--判断任务书 */
export function checkCreateKnotItemBook(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/checkCreateKnotItemBook`,
    method: 'post',
    data: parameter,
  })
}
/**创建任务--预览任务书 */
export function previewKnotitemBook(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/previewKnotitemBook`,
    method: 'post',
    data: parameter,
    responseType: 'blob',
  })
}
/**查看验收表--验收结论 */
export function getAcceptanceConclusions(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/getAcceptanceConclusions`,
    method: 'post',
    data: parameter,
  })
}
/**查看验收表--流程 */
export function getDisposeStatus(parameter) {
  return request({
    url: `/workflow/Windchill/servlet/rest/hzero/foundation/workflow/getDisposeStatus`,
    method: 'post',
    data: parameter,
  })
}
/**开启流程 */
export function startWfProcess(parameter) {
  return request({
    url: `/workflow/Windchill/servlet/rest/hzero/pmgt/workflow/startWfProcess`,
    method: 'post',
    data: parameter,
  })
}
/**流程过程-验收指标及验收结论 */
export function saveAcceptanceConclusions(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/saveAcceptanceConclusions`,
    method: 'post',
    data: parameter,
  })
}
/**获取按钮权限*/
export function getKnotItemBookActionsPermission(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/getKnotItemBookActionsPermission`,
    method: 'post',
    data: parameter,
  })
}
/**催一下*/
export function knotbookSignUrgeToDo(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/knotbookSignUrgeToDo`,
    method: 'post',
    data: parameter,
  })
}
export function workitemUrgeToDo(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pdm/core/workitemUrgeToDo`,
    method: 'post',
    data: parameter,
  })
}
/**获取RM接口 */
export function getRmList(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/getRMData`,
    method: 'post',
    data: parameter
  })
}
export function saveRMState(parameter) {
  return request({
    url: `/project/Windchill/servlet/rest/hzero/pmgt/knotitembook/saveRMState`,
    method: 'post',
    data: parameter
  })
}